<template>
  <div>
    <Header/>
    <router-view></router-view>
    <Footer v-show="!$route.meta.footerIsHidden"/>
  </div>
</template>

<script>
import {mapActions} from 'vuex'
import Header from '@comp/Header'
import Footer from '@comp/Footer'
export default {
    name:'App',
    components:{
      Header,
      Footer
    },
    mounted() {
      //发送获取三级列表请求
      this.getCategoryList();
    },
    methods:{
      //获取三级列表函数,写在app组件，避免频繁请求
    ...mapActions("home", ["getCategoryList"]),
    }
}
</script>

<style>

</style>